function h = aft_Handles(hfile)
% AFT::Handles  - return list of handles for object
%
% FORMAT:       handles = obj.Handles;
%
% No input fields:
%
% Output fields:
%
%       handles     registered handles of object
%
% TYPES: ALL

% Version:  v0.8a
% Build:    9102122
% Date:     Oct-21 2009, 10:16 PM CEST
% Author:   Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% only valid for single file
if nargin < 1 || ...
    numel(hfile) ~= 1 || ...
   ~isBVQXfile(hfile, true)
    error( ...
        'BVQXfile:BadArgument', ...
        'Invalid call to %s.', ...
        mfilename ...
    );
end

% get handles
try
    sc = bvqxfile_getscont(hfile.L);
    h = sc.H;
catch
    h = struct;
end
